package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.bean.vo.wx.wxhome.WXHomeAboutVO;
import com.cskaoyan.service.wx.WXHomeAboutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : Caspar
 * @since : 2022.06.29 23:20
 */

@RestController
@RequestMapping("wx/home")
public class WXHomeAboutController {

    @Autowired
    WXHomeAboutService wxHomeAboutService;

    /**
     * 小程序中“关于我们”
     *
     * @return com.cskaoyan.bean.vo.BaseRespVo
     * @author: Caspar CXC
     * @since 2022/06/29 23:29
     */
    @RequestMapping("about")
    public BaseRespVo about() {

        WXHomeAboutVO wxHomeAboutVO = wxHomeAboutService.about();
        return BaseRespVo.ok(wxHomeAboutVO);
    }

}
